/**
 * Created by zyy on 15/9/8.
 * zhangyuyu@superjia.com
 */
(function($) {
    'use strict';

    var inited = false;
    var container = $('#api');
    var pageConfig = window.pageConfig;
    var layout = App.modules.layout;
    var template = App.modules.template;

    $.jsp.on('init', function() {
        if (!inited) {
            layout.init(container, pageConfig);
        }
    });

    $.jps.on('layout-inited', function(panel) {
        template.init(panel.templatePanel, pageConfig);
    });

})(jQuery);
